target = 100
elements = []
indices_dict = {e: indice for indices, e in enumerate(elements)}
result = []
for e in elements:
    another_e = target - e
    if another_e in elements:
        result.add(indices_dict[e], indices_dict[another_e])
        print(result)
        break


class Solution(object):
    def twoSum(self, nums, target):

        if len(nums) <= 1:
            return False;
        buff_dict = {}
        for i in range(len(nums)):
            if num[i] in buff_dict:
                return [buff_dict[nums[i]], i]
            else:
                buff_dict[target - nums[i]] = i